/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2017
 */

package models.dao;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


import org.springframework.stereotype.Repository;

import cn.org.rapid_framework.page.Page;
import common.base.mybatis.BaseIbatis3Dao;
import models.model.RepairInfo;
import models.vo.query.RepairInfoQuery;


@Repository
public class RepairInfoDao extends BaseIbatis3Dao<RepairInfo,java.lang.Integer>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "RepairInfo";
	}
	
	public void saveOrUpdate(RepairInfo entity) {
		if(entity.getId() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(RepairInfoQuery query) {
		return pageQuery("RepairInfo.findPage",query);
	}
	

}
